package com.sunbim.rsrv.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author yuhui
 * @since 2021-12-30
 */
@Getter
@Setter
@TableName("storage")
@ApiModel(value = "Storage对象", description = "")
public class Storage implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("父id")
    @TableField("parent_id")
    private Integer parentId;

    @ApiModelProperty("所属用户id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty("所属文物id")
    @TableField("relics_id")
    private Integer relicsId;

    @ApiModelProperty("文件名称")
    @TableField("storage_name")
    private String storageName;

    @ApiModelProperty("文件路径")
    @TableField("storage_path")
    private String storagePath;

    @ApiModelProperty("文件url")
    @TableField("storage_url")
    private String storageUrl;

    @ApiModelProperty("类型")
    @TableField("storage_type")
    private String storageType;

    @ApiModelProperty("附属描述")
    @TableField("storage_desc")
    private String storageDesc;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


}
